home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19960715-19961006 / 000422_news@columbia.edu _Mon Sep 30 10:06:47 1996.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: news@columbia.edu
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30]) by watsun.cc.columbia.edu (8.7.5/8.7.3) with ESMTP id KAA11909 for <kermit.misc@watsun.cc.columbia.edu>; Mon, 30 Sep 1996 10:06:41 -0400 (EDT)
  3. Received: (from news@localhost) by newsmaster.cc.columbia.edu (8.7.5/8.7.3) id KAA13417 for kermit.misc@watsun; Mon, 30 Sep 1996 10:06:30 -0400 (EDT)
  4. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  5. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  6. Newsgroups: comp.protocols.kermit.misc
  7. Subject: Re: Remote IF EXIST?
  8. Date: 30 Sep 1996 14:05:44 GMT
  9. Organization: Columbia University
  10. Lines: 22
  11. Message-ID: <52ok3o$9qj@apakabar.cc.columbia.edu>
  12. References: <324FA925.31DFF4F5@lmi.ericsson.se>
  13. NNTP-Posting-Host: watsun.cc.columbia.edu
  14.  
  15. In article <324FA925.31DFF4F5@lmi.ericsson.se>,
  16. Ulrik Sandberg  <lmiusg@lmi.ericsson.se> wrote:
  17. : Question: Is there a clever way of doing a 'REMOTE IF EXIST <file>'?
  18. Yes.
  19.  
  20. : (MS Kermit 3.14)
  21. : I was recently using the server-capabilities to control a remote
  22. : host by starting en external program for creating a file and then
  23. : transfer the file to the "client" using the GET command. 
  24. : At one point I was forced to check if a control file was existing 
  25. : on the server before I performed the file transfer (a simple file 
  26. : locking protocol). The REMOTE commands do not include a command 
  27. : that does that ...
  28. :
  29. Try this (as documented in the update notes):
  30.  
  31.   remote query kermit files(name-of-file)
  32.   if > \v(query) 0 <the-file-exists>
  33.  
  34. - Frank